const dayjs = require("dayjs")
const mongoose = require("../../db/db");

/**
 * @description 产品-分类 关联表
 */
const Schema = mongoose.Schema({
    productId: {
        type: String,
        require: true
    },
    categoryId: {
        type: String,
        require: true
    },

},{
    versionKey: false,
    timestamps: {
        createdAt: 'createDate',
        updatedAt: 'updateDate'
    }
})
const product_category_link = mongoose.model("product_category_link", Schema);
module.exports=product_category_link